package com.zxy.ziems.server.energy.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zxy.ziems.server.mybatis.core.pojo.PageParam;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 测量数据分页查询参数
 * @author 10348359
 * @create 2024-04-02 14:28
 */
@Data
public class DeviceMeasureDataPageParam extends PageParam {


    /**
     * 设备Id
     */
    @NotBlank(message = "设备id不能为空")
    private String deviceId;

    /**
     * 属性id
     */
    private String dataTypeId;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
